package com.example.ibsp_demo.pojo.entity.message;

import java.time.LocalDateTime;

public class ActivityNotification {
    private Integer activityId;
    private Integer userId;
    private String title;
    private String content;
    private LocalDateTime sendTime; // 新增
    private Boolean isRead;


    @Override
    public String toString() {
        return "ActivityNotification{" +
                "activityId=" + activityId +
                ", userId=" + userId +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", sendTime=" + sendTime +
                ", isRead=" + isRead +
                '}';
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getSendTime() {
        return sendTime;
    }

    public void setSendTime(LocalDateTime sendTime) {
        this.sendTime = sendTime;
    }

    public Boolean getRead() {
        return isRead;
    }

    public void setRead(Boolean read) {
        isRead = read;
    }

    public ActivityNotification(Integer activityId, Integer userId, String title, String content, LocalDateTime sendTime, Boolean isRead) {
        this.activityId = activityId;
        this.userId = userId;
        this.title = title;
        this.content = content;
        this.sendTime = sendTime;
        this.isRead = isRead;
    }
}